﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ObserverPattern
{
    class SubJect
    {
        public delegate void NotifyHandler(object sender, string status);
        public event NotifyHandler NotifyEvent;
        public void On_Notify()
        {
            NotifyEvent(this, status);
        }
        private string status;
        public string Status
        {
            get
            {
                return status;
            }
            set
            {
                status = value;
            }
        }
    }
}
